﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MarkControle.Models.tarefa>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CadastroTarefa
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>CadastroTarefa</h1><br /><%:Html.ActionLink("Voltar","Voltar")%>
    <style type="text/css">h2{ color:Red;}</style>

       <p>
         <%: ViewData["PasswordLength"] %> 
       
    </p>

    <% using (Html.BeginForm("Cadastratarif", "Home", FormMethod.Post))
       { %>
        <%: Html.ValidationSummary(true, "Corrija os erros e tente novamente!")%>
         <h2><%:ViewData["errdat"] %></h2><br />
        <div>
            <fieldset>
                <legend>Informações da nova tarefa</legend>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Prazo)%>
                </div>
                <div class="editor-field">
                 
                   Dia <%: Html.TextBoxFor(models=>models.A)%>
                   Mês <%: Html.TextBoxFor(models=>models.B)%>
                   Ano <%: Html.TextBoxFor(models=>models.C)%>
                   
                </div>
                <div class="editor-field">
                    Prioridade
                     <%: Html.TextBoxFor(models=>models.Priori)%>
                     <%: Html.ValidationMessageFor(models => models.Priori) %>
                 
                </div>
                <div class="editor-label">
                    Informações
                </div>
                <div class="editor-field">
                    <%: Html.TextAreaFor(models => models.Informacoes)%>
                     <%: Html.ValidationMessageFor(models => models.Informacoes) %>
                 
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Comentarios)%>
  
                </div>
                <div class="editor-field">
                    <%: Html.TextAreaFor(models => models.Comentarios)%>
                    <%: Html.ValidationMessageFor(models => models.Comentarios) %>
                    
                    
                </div>
                
                <div class="editor-label">
                    Usuários
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Enca1)%><%: Html.ValidationMessage("encar1")%><%: Html.TextBoxFor(models => models.Enca2)%><%: Html.ValidationMessage("encar2")%><%: Html.TextBoxFor(models => models.Enca3)%><%: Html.ValidationMessage("encar3")%>
                   
                </div>
                
                <p>
                    <input type="submit" value="Registrar" />
                </p>
            </fieldset>
        </div>
        <%} %>


</asp:Content>
